﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Models;
using PBOffice.DAL;

namespace PBOffice.BLL
{
    public class BranchManager
    {
        public List<Branch> GetAllBranch()
        {
            return new BranchService().GetAllBranch();
        }
        public Branch GetOneBranch(int id)
        {
            return new BranchService().GetOneBranch(id);
        }
        public void DeleteBranch(int id)
        {
            new BranchService().DeleteBranch(id);
        }
        public void AddBranch(Branch branch)
        {
            new BranchService().AddBranch(branch);

        }
        public void UpdateBranch(Branch branch)
        {
            new BranchService().UpdateBranch(branch);
        }
    }
}
